package com.telit.firecommand.dao;

import com.telit.firecommand.entity.CommFireLoss;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface CommFireLossDao {
    int deleteByPrimaryKey(Long id);

    int insert(CommFireLoss record);

    int insertSelective(CommFireLoss record);

    CommFireLoss selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommFireLoss record);

    int updateByPrimaryKey(CommFireLoss record);

    /**
     * 通过火情id删除数据
     *
     * @param fireId
     */
    void deleteByFireId(@Param("fireId") Long fireId);

    /**
     * 通过火情id查询
     *
     * @param fireId
     *
     * @return
     */
    CommFireLoss queryByFireId(@Param("fireId") Long fireId);

}